package com.jokerpan.project.mapper;

import com.jokerpan.project.entity.BlogAction;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author jokerpan
 */
@Mapper
public interface BlogActionMapper {

    List<BlogAction> queryList(BlogAction blogAction);

    Integer queryBlogCount(BlogAction blogAction);

    List<BlogAction> queryLikes(BlogAction blogAction);

    List<BlogAction> queryStars(BlogAction blogAction);

    List<BlogAction> queryViews(BlogAction blogAction);

    List<BlogAction> queryMessages(BlogAction blogAction);

    int add(BlogAction blogAction);

    int deleteById(Integer id);

    int deleteByObjId(Integer objId);

}
